package uestc.lj.gulishop.product.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import uestc.lj.common.utils.R;
import uestc.lj.gulishop.product.feign.fallback.SeckillFeignServiceFallback;

/**
 * @Author:Crazlee
 * @Date:2021/6/23
 */
@FeignClient(value = "gulishop-seckill", fallback = SeckillFeignServiceFallback.class)
public interface SeckillFeignService {

    @GetMapping("/sku/seckill/{skuId}")
    public R getSkuSeckillInfo(@PathVariable("skuId") Long skuId);


}
